package work.lrl.toJson;

import cn.hutool.core.io.FileUtil;
import cn.hutool.json.JSONArray;
import core.util.TransformCsvData;

import java.nio.charset.Charset;

public class Main {
    public static void main(String[] args) {
        JSONArray jsonArray = new JSONArray();
        TransformCsvData.peekCsv(Setting.readFile, 0, s -> jsonArray.add(s[0]));
        FileUtil.writeString(jsonArray.toString(), Setting.outFile, Charset.defaultCharset());
    }
}
